﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using socialNetwork.Models;
using System.Data.Entity.ModelConfiguration.Conventions;


namespace socialNetwork.Models
{
    public class SocialNetContext : DbContext
    {
        public DbSet<Post> Posts { get; set; }
        public DbSet<Comment> Comments { get; set; }
        public DbSet<Message> Messages { get; set; }
        public DbSet<Friend> Friends { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
        
    }
}